<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echarts.min.js"></script>
</head>

<body>
    <div id="main" style="width: 500px;height:300px;"></div>
    <script>
        var myChart = echarts.init(document.getElementById('main'));
        option = {
            title:{text:'就业率'},
            color: [ "#5e86e5", "#7db9c3","#6ba364"],
            dataset: {
                source: [
                    ["type", "c2109班"],
                    ["c2109A班", 80],
                    ["c2109B班", 60],
                    ["c2109C班", 100],
                ]
            },
            legend: {
                bottom :'83%'
            },
            xAxis: {
                type: "category",
                axisTick: {
                    show: true
                },
            },
            yAxis: {
              
            },
            series: [
            {
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            }, 
            {
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            },
            {
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            }, 
        ],
            
        }
        myChart.setOption(option);
    </script>
</body>

</html>